import Mock from 'mockjs'

const toplist = Mock.mock({
    'datas': {
        toalsellmoney: "@integer(100,99999)",
        todaysellmoney: "@integer(100,9999)",
        toalaccess: "@integer(100,99999)",
        todayaccess: "@integer(100,9999)",
        toalcllect: "@integer(100,99999)",
        todaycllect: "@integer(100,9999)",
        toalpay: "@integer(100,99999)",
        todaypay: "@integer(100,9999)"
    }
})
Mock.mock(/\/mock\/hometop/, 'get', function () {
    return {
        code: 200,
        message: 'success',
        ...toplist
    }
})
const footlist = Mock.mock({
    'datas': {
        toalmoney: "@integer(100,99999)",
        todayorder: "@integer(100,999)",
        toalsureorder: "@integer(100,99999)",
        monthorder: "@integer(100,9999)",
        monthtoalorder: "@integer(100,99999)",
        monthtoalmoney: "@integer(100,99999)",
    }
})
Mock.mock(/\/mock\/homefoot/, 'get', function () {
    return {
        code: 200,
        message: 'success',
        ...footlist
    }
})
const midelist = Mock.mock({
    'datas': {
        moth:[
            {
                rlei:'@integer(1,100)',
                schan:'@integer(1,100)',
                scai:'@integer(1,100)',
                lysp:'@integer(1,100)',
                sguo:'@integer(1,100)'
            }
        ],
        prot:[
            {value:'@integer(1,100)', name:'肉类'},
            {value:'@integer(1,100)', name:'水产'},
            {value:'@integer(1,100)', name:'蔬菜'},
            {value:'@integer(1,100)', name:'冷饮食品'},
            {value:'@integer(1,100)', name:'水果'},
        ]
    }
})
Mock.mock(/\/mock\/homemidel/, 'get', function () {
    return {
        code: 200,
        message: 'success',
        ...midelist
    }
})